package com.zsyg.common.quartz;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @author YangWanLi
 * @version: v1.0
 * @description: 测试任务
 * @date: 2018-11-02
 */
public class QuartzTestJob implements Job {


    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        JobDataMap dataMap = context.getJobDetail().getJobDataMap();
        String data = (String) dataMap.get("data");
        System.out.println("----------------------" + data);
    }
}
